<!--  -->
<template>
  <div>
    子组件
  </div>
</template>

<script lang='ts' setup>
import { reactive,toRefs,ref,onMounted} from 'vue'

const getData=()=>{

  return  new Promise((resolve)=>{

         setTimeout(()=>{

            resolve(1000);

         },5000)

    })
     
}

 
await getData();
 

 

</script>
<style scoped>
</style>